gtkicontheme: Don’t emit warning about fallback theme when in unit tests
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Wed, 3 Aug 2016 20:12:27 +0000 (21:12 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Aug 2016 21:13:25 +0000 (17:13 -0400)
commit76721e736e9605b3a7ec76d3676d8cb5f4172490
treea921f55abda3a47c9b81d476ad17e222ec8a3e7c
parent1306f780abc1aa928c140107eace3896e43535bb
gtkicontheme: Don’t emit warning about fallback theme when in unit tests

In order to eliminate g_test_expect_message() (which doesn’t work with
G_LOG_USE_STRUCTURED), make the warning about the fallback theme not
existing be conditional on the icon theme search path containing a
system path. Any application code which modifies the search path does so
through appends and prepends, so this should not affect whether the
warning is emitted in production.

https://bugzilla.gnome.org/show_bug.cgi?id=769485
testsuite/gtk/icontheme.c